let koa = require("koa"),
    body = require("koa-bodyparser"),
    sta = require("koa-static"),
    app = new koa(),
    controller = require("./controller"),
    session = require("./session"),
    nuncon = require("./nuncon");

app.use(session(app))
app.use(sta(__dirname + "/static"))
app.use(sta(__dirname + "/tool"))
app.use(body())
app.use(nuncon)
app.use(controller())





let port = "5418";
app.listen(port);
console.log(`http://localhost:${port}`);